Skip to content

Kimi-free-api โ€‹

Tags
Kimi
Chatgpt-next-web
Words count
98 ๅญ—
Reading time
1 ๅˆ†้’Ÿ
yaml
version: "3"

services:
	chatgpt-next-web:
		image: yidadaa/chatgpt-next-web:latest
		container_name: chatgpt-next-web	
		ports:		
			- "3000:3000"		
		environment:		
			OPENAI_API_KEY: "[refresh_token]"
			BASE_URL: "http://kimi-free-api:8000"			
			CUSTOM_MODELS: "-all,+kimi"		
		depends_on:		
			- kimi-free-api  

kimi-free-api:
	container_name: kimi-free-api	
	image: vinlic/kimi-free-api:latest	
	restart: always	
	ports:	
		- "8000:8000"	
	environment:	
		TZ: "Asia/Shanghai"

Kimi่Žทๅ– refresh_token๏ผŒๆ›ฟๆข่‡ณ yaml ๆ–‡ไปถไธญ ๆต‹่ฏ• token๏ผŒๆณจๆ„ๆ›ฟๆขrefresh_token

bash
curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer [refresh_token]" \
  -d '{
    "model": "kimi",
    "messages": [
      {
        "role": "user",
        "content": "ไฝ ๆ˜ฏ่ฐ๏ผŸ"
      }
    ],
    "use_search": true,
    "stream": false
    }'

ๅ‚่€ƒ้“พๆŽฅ

kimi-free-apiใ€Œgithubใ€chatgpt-next-web